<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <link rel="stylesheet" type="text/css" href="{% static '/css/index.css' %}"/>
	<script src="{% static '/js/jquery-3.2.1.min.js' %}"></script>
    <title>用户注册</title>
    <script>
        $(function (){
            $("#butn").click(function (){
                let upt = $("#upt").val()
                if (upt == "" || upt == undefined){
                    alert("日期不能为空！！！")
                    return;
                }
                let nickname = $("#nickname").val()
                if (nickname == "" || nickname == undefined){
                    alert("昵称不能为空！！！")
                    return;
                }
                let realname = $("#realname").val()
                if (realname == "" ||realname == undefined){
                    alert("真实姓名不能为空！！！")
                    return;
                }
                let sex = $("#sex").val()
                if (sex == "" || sex == undefined) {
                    alert("性别不能为空！！！")
                    return;
                }
                $("#myform").submit();
            })
        })
    </script>
	
</head>
<body>
    <header>
    	<div class="lf">
    		<a class="home" href="{% url 'index' %}">系统首页</a>
    		<!-- <a href="bbs.html">论坛</a> -->
    		<a href="upload.html">上传资料</a>
    	</div>
    	<div id="search">
    		<input type="text" name="name" 
    			placeholder="请输入要搜索的资源" autocomplete="off"/><a class="search btn">搜索</a>
    	</div>
    	
    	<div class="rf">
    		<a href="{% url 'auth:userlogin' %}">登录/注册</a>
    		<a class="info" href="personal.html">个人中心</a>
    		<a class="cols" href="shoucang.html">收藏</a>
    		<a class="{% url 'auth:userlogout' %}">退出登录</a>
    	</div>
    </header>
	<article>
		<!-- 网站主体 -->
		<div id="main">
			<section class="ct">
				<!-- 上传表单-->
				<div class="upload">
					<h1>用户注册②<em>填写基本信息、完成用户注册第二步</em></h1>
					<!-- 注册步骤导航-->
					<div class="reg_step">
						<a class="step1">注册信息</a><a class="step">基本信息</a><a class="step2">注册完成</a>
					</div>
					
					<form action="{% url 'auth:usernext_reg' %}" id="myform" method="post" autocomplete="off" enctype="multipart/form-data">
						<input  type="hidden" name="user_id" value="{{user.id}}" >
						<p class="file">
							<input type="file" name="icon" >
							<span class="t1">点击上传用户头像、图片小于5MB</span>
							<!-- 上传后的效果 -->
							<!-- 
							<span class="t2">
								<img src="./images/zip.svg" />
								<b>房产物业管理系统.zip</b>
								<a>重新上传</a>
							</span> 
							-->
						</p>
						<p>
							<label>出生日期：</label>
							<input id="upt" class="upt" type="date" name="birth" value="" />
						</p>
						<p>
							<label>昵称：</label>
							<input id="nickname" class="upt" type="text" name="nickname" value="" />
							<b></b>
						</p>
						<p>
							<label>真是姓名：</label>
							<input id="realname" class="upt" type="text" name="realname" value="" />
							<b></b>
						</p>
						<p>
							<label>性别：</label>
							<select id="sex"  name="sex" class="upt">
								<option value="保密">保密</option>
								<option value="男">男</option>
								<option value="女">女</option>
							</select>
						</p>

						<p>
							<input id="butn" type="submit" class="btn" value="确认完成">
							<a class="skip" href="{% url 'auth:usersuccess' %}">跳过该步骤</a>
						</p>
					</form>
				</div>
			</section>	
		</div>
	</article>
	<footer>
		<p class="decro">本站所有资源信息均由网友上传,本站只是为了推广资源让更多读者下载,使用。如涉侵权，请联系管理员</p>
		<p class="cr">Copyright © 2021-2025 <span class="site">爱下载资源分享平台</span> All Rights Reserved.</p>
		<p class="num">沪ICP备14048333号</p>
	</footer>
	
</body>

</html>